<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H5小游戏-贪吃蛇</title>
    <link rel="stylesheet" href="../snake/css/index.css">
    
</head>
<body>
    <div id="box">
        <!--专门用于canvas绘制的画布标签，对外会表现为一个块级元素-->
        <canvas id="snakeArea"></canvas>
        <!-- 工具栏，负责分数和按钮-->
        <div id="toolbar">
            <div id="gamescore">0000</div>
            <div id="gametime">00</div>
            <div id="buttons">
                <button id="start" onclick="start();"></button>
                <button id="pause" onclick="pause();"></button>
            </div>
        </div>
        <div id="gameover" class="gaming">

        </div>
    </div>
    <audio src="../snake/audio/boing3.wav" id="overmusic" preload="auto"></audio>
    <audio src="../snake/audio/Cut_01.mp3" id="bgmusic" preload="auto" loop></audio>
    <audio src="../snake/audio/si.mp3" id="addmusic" preload="auto"></audio>
    <script src="../snake/js/snakePart.js"></script>
    <script src="../snake/js/index.js"></script>
    <script src="../snake/js/Track.js"></script>
</body>
</html>